package com.fs.dao;

import com.fs.domain.DbInfo;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by fengshuai on 17/5/18.
 */
@Repository
public interface DbInfoDao {
    public static final String TABLE = "db_info";
    public static final String SELECT_FIELDS = "id,name,type,ctime,utime,valid";

    @Select("select " + SELECT_FIELDS + " from " + TABLE)
    public List<DbInfo> getAll();
}
